home *** CD-ROM | disk | FTP | other *** search
- String.prototype.addCommas = function()
- {
- var len = this.length;
- var str = "";
- var i = 0;
- while(i <= len)
- {
- str = this.charAt(len - i) + str;
- if(i % 3 == 0 && i > 0 && i < len)
- {
- str = "," + str;
- }
- i++;
- }
- return str;
- };
- game_so = SharedObject.getLocal("neaveTetris");
- score = 0;
- level = startLevel;
- play_btn.onRelease = function()
- {
- Key.removeListener(keyListener);
- play();
- };
- highScores_btn.onRelease = function()
- {
- gotoAndStop(25);
- };
- neave_btn.onRelease = function()
- {
- getUrl("http://www.neave.com/games/", "_blank");
- };
-